package com.zxw.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxw.common.entity.article.count.VisitRankBarCountVO;
import com.zxw.common.entity.gateway.LogEntity;
import com.zxw.common.entity.gateway.count.CountLogVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 访问日志记录信息 Mapper 接口
 * </p>
 *
 * @author zhanxuewei
 * @since 2022-10-10
 */
@Mapper
public interface LogMapper extends BaseMapper<LogEntity> {

    /**
     * 按天统计访问数量
     *
     * @return
     */
    List<CountLogVO> countLog();

    /**
     * 访问排名柱状图
     * @return
     */
    List<VisitRankBarCountVO> visitRankBarCount();
}
